<?php 
/* SVN FILE: $Id: admin_index.ctp 65 2007-12-09 00:23:22Z joe.vasquez $ */
/**
 * admin view for users index
 * @filesource
 * @author			Joe Vasquez <joe.vasquez@gmail.com>
 * @copyright		Copyright (c) 2007, Joe Vasquez
 * @package			redlettr
 * @subpackage		users
 * @since			0.1A
 * @version			0.1A  $Rev: 65 $
 * @lastmodified	$Date: 2007-12-09 00:23:22 +0000 (Sun, 09 Dec 2007) $
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<p class="counter"><?php echo $paginator->counter(array(
    'format' => 'Page %page% of %pages%, showing %current% records out of 
    %count% total.'
)); ?></p>
<table class="pagination">
<thead>
<tr>
<th><?php echo $paginator->sort('Id', 'id', array('User'));?></th>
<th><?php echo $paginator->sort('Email', 'email', array('User'));?></th>
<th><?php echo $paginator->sort('Display Name', 'displayname', array('Profile'));?></th>
<th><?php echo $paginator->sort('Created', 'created', array('User'));?></th>
<th><?php echo $paginator->sort('Modified', 'modified', array('User'));?></th>
</thead>
<tbody>
<?php foreach($users as $user): ?>
<tr>
<td><?php echo $html->link($user['User']['id'],'/'.Configure::read('Routing.admin').'/users/view/'.$user['User']['id']); ?></td>
<td><a href="mailto:<?php echo $user['User']['email']; ?>"><?php echo $user['User']['email']; ?></a></td>
<td><?php echo $user['Profile']['displayname']; ?></td>
<td><?php echo $time->niceShort( $user['User']['created']); ?></td>
<td><?php echo $time->niceShort( $user['User']['modified']); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>